package com.jswlw.controller.api.resp;

import com.jswlw.common.BaseApiResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@ApiModel(description = "API-设备详情响应对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class DevInfoResponse extends BaseApiResponse {

    DevInfoData data;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    public static class DevInfoData {
        @ApiModelProperty(value = "设备ID", required = true, example = "5423")
        String id;

        @ApiModelProperty(value = "剩余流量", required = true, example = "5423")
        Integer remainFlow;

        @ApiModelProperty(value = "已经使用流量", required = true, example = "5423")
        Integer usedFlow;

        @ApiModelProperty(value = "本次使用流量", required = true, example = "5423")
        Integer unitFlow;

        @ApiModelProperty(value = "剩余时长", required = true, example = "5423")
        Integer remainTime;

        @ApiModelProperty(value = "已经使用时长", required = true, example = "5423")
        Integer usedTime;

        @ApiModelProperty(value = "计费模式", required = true, example = "1")
        Integer billType;

        @ApiModelProperty(value = "设备类型", required = true, example = "1")
        Integer devTypeId;

        @ApiModelProperty(value = "在线状态", required = true, example = "1")
        Integer onlineStatus;

        @ApiModelProperty(value = "设备状态", required = true, example = "1")
        Integer devStatus;

        @ApiModelProperty(value = "未净化水源", required = true, example = "1")
        Integer purityTds;

        @ApiModelProperty(value = "可饮用水源", required = true, example = "1")
        Integer rawTds;

        @ApiModelProperty(value = "经销商ID", required = true, example = "1")
        Integer distributorId;
    }
}
